package com.san.school.mapper;

import com.san.school.entity.Student;
import com.san.school.entity.StudentExample;

import java.util.List;

import org.apache.ibatis.annotations.Param;

/**
 * ClassName:StudentMapper
 * PackageName:com.san.school.mapper
 * Description:
 *
 * @Author:yy
 * @CreatedAt:2024/11/6 18:07
 */


public interface StudentMapper {
    long countByExample(StudentExample example);

    int deleteByExample(StudentExample example);

    int deleteByPrimaryKey(Integer sid);

    int insert(Student record);

    int insertSelective(Student record);

    List<Student> selectByExample(StudentExample example);

    Student selectByPrimaryKey(Integer sid);

    int updateByExampleSelective(@Param("record") Student record, @Param("example") StudentExample example);

    int updateByExample(@Param("record") Student record, @Param("example") StudentExample example);

    int updateByPrimaryKeySelective(Student record);

    int updateByPrimaryKey(Student record);
}